package za.ac.lance.liskovsubstitutionprinciple.obeys;

/**
 * File Name: Rectangle.java
 * Version:
 * Description:
 * Package: za.ac.lance.liskovsubstitutionprinciple.violates
 * Author: Lance
 * Date: Feb 26, 2012
 */
public class Rectangle
{

    private int width;
    private int height;
    
    public Rectangle(int width, int height)
    {
        this.width = width;
        this.height = height;
    }

    public void setWidth(int width)
    {
        this.width = width;
    }

    public void setHeight(int height)
    {
        this.height = height;
    }

    public int getWidth()
    {
        return width;
    }

    public int getHeight()
    {
        return height;
    }

    public int getArea()
    {
        return getWidth() * getHeight();
    }
}
